Repository navigation
AURA-MCP-02-I2b-S10: consolidated activation readiness (S3-1 closure) - #387
Merged
Merged
Conversation
Disabled-by-default MCP OAuth code only; activation gates unchanged. - S3-1: authorization-code activation is a held transaction COMMITTED only after the complete response was handed off. Every other outcome (activation failure, database outage, disconnect, partial write, replaced response, crash/freeze) leaves the code PENDING in the shared database with no further write -- refused on every instance. Lookups of codes use FOR SHARE; consume refuses pending codes. The S8 instance-local hold, background retry and inline revocation are removed. - Secrets: format-aware strength (hex 4 bits/char, base64/base64url 6 bits/char) on top of the unchanged S8 rule, with repeated-block / run / skew vetoes. openssl rand -hex 16 and -base64 24 are accepted for every role incl. retained cookie keys; nothing S8 accepted is newly refused. - Time budget: one deadline covers checkout + statement + COMMIT; one per-request budget (requestBudgetMs, default 5000 ms) caps all store calls of an authorization-server request. - CI 45372768632 (188/480): harness coupled to runner speed meeting fail-closed load shedding; split into unconditional safety (admitted <= counted <= G) and exactness under an explicit budget, plus a slow-DB reproduction. Same concurrency, no weakened assertion. Tests: new mcpOAuthS10 (121) and mcpOAuthS10Db (21), wired into CI; S6/S8/Postgres/StagingBlockers DB suites updated. Report: AURA_MCP_02_I2B_S10_ACTIVATION_READINESS_REPORT.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Disabled-by-default MCP OAuth code only. No activation, deployment, env/credential change or gate change. MCP stays disabled; staging and Production activation stay on HOLD. Do not merge without owner approval.
Full report:
AURA_MCP_02_I2B_S10_ACTIVATION_READINESS_REPORT.md(in this PR).What changes
S3-1: cross-instance code safety (closed in code)
heldStatement/beginIssuedActivation). The UPDATE runs before the response is written, and the COMMIT is sent only after the complete response has been handed off (finish, same status < 400, still carrying the code).idle_in_transaction_session_timeoutends it, and PostgreSQL rolls back. This covers activation failure, a database outage, a disconnect, a partial write, a replaced response (S7 P3) and a crash or freeze.FOR SHARE, so a racing redemption waits for the activation instead of reading a half-decided row.consumerefuses pending codes at the database level.Secrets (I2b-R-6 compatibility)
openssl rand -hex 16was refused 100% of the time by S8;-base64 24about 1 time in 6,600. Both are now accepted for every role, including retained cookie keys.Time budget
requestBudgetMs(default 5000 ms) caps all store calls of one authorization-server request.Concurrency (CI run 45372768632, 188 of 480)
Evidence (isolated PostgreSQL 16, socket only, synthetic identities)
mcpOAuthS10(121) andmcpOAuthS10Db(21). Both are wired into CI.FOR SHAREfails I4.git diff b2e0f8cis empty formcpAuthGate.ts,mcpRemoteReadiness.ts,vercel.json, the OAuth route,/api/mcp,next.config.jsand the standalone check).Still required (see report §6 and §8)
Live validations V1–V6, each separately authorized:
Owner decisions D2–D10 also remain.
🤖 Generated with Claude Code